package com.asset.salesforce.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.asset.salesforce.dao.ActionColumnPredefinedValueDaoImpl;
import com.asset.salesforce.domain.ActionColumnPredefinedValue;

@Service
@Transactional(readOnly=true)
public class ActionColumnPredefinedValueService {

	@Autowired
	private ActionColumnPredefinedValueDaoImpl actionColumnPredefinedValueDaoImpl;
	
	@Transactional(readOnly = false)
	public void addActionColumnPredefinedValue(ActionColumnPredefinedValue actionColumnPredefinedValue){
		actionColumnPredefinedValueDaoImpl.add(actionColumnPredefinedValue);
	}
	@Transactional(readOnly = true)
	public ActionColumnPredefinedValue getActionColumnPredefinedValueById(ActionColumnPredefinedValue actionColumnPredefinedValue,Integer id){
		return actionColumnPredefinedValueDaoImpl.getById(id,actionColumnPredefinedValue);
	}
	@Transactional(readOnly = true)
	public List<ActionColumnPredefinedValue> getActionColumnPredefinedValues(ActionColumnPredefinedValue actionColumnPredefinedValue){
		return actionColumnPredefinedValueDaoImpl.getAll(actionColumnPredefinedValue);
	}
}
